package com.qf.qfssm.web.master.dao;

import com.qf.qfssm.web.master.entity.Customer;
import com.qf.qfssm.web.master.vo.CustomerVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 刘欣
 * @description 针对表【customer】的数据库操作Mapper
 * @createDate 2023-01-10 13:36:10
 * @Entity com.qf.qfssm.web.master.entity.Customer
 */
public interface CustomerDao {

    int deleteByPrimaryKey(List<Long> ids);

    int insert(Customer record);

    int insertSelective(Customer record);

    Customer selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Customer record);

    int updateByPrimaryKey(Customer record);

    List<Customer> getCustomerAll(Customer customer);

    Customer selectByUsernameAndPassword(@Param("name") String name, @Param("password") String password);

    Customer selectCustomer(Customer customer);

    List<Customer> pageQuery(@Param("index") Integer index, @Param("limit") Integer limit);

    int batchInsert(@Param("customers") List<Customer> customers);

    Customer selectCustomerByName(String name);

    List<Customer> selectAll();
}
